package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhc
 * @since 2024-10-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("question_option")
@ApiModel(value = "QuestionOptionEntity对象", description = "")
public class QuestionOptionEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("opt_id")
    private Long optId;

    @ApiModelProperty("问题ID")
    @TableField("que_id")
    private Long queId;

    @ApiModelProperty("文字内容")
    @TableField("str_value")
    private String strValue;

    @ApiModelProperty("图片链接")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty("选项顺序")
    @TableField("ordinal")
    private Integer ordinal;

    @ApiModelProperty("是否为其他选项")
    @TableField("is_other")
    private Boolean isOther;

    @ApiModelProperty("-2:未设置,-1:设置为无限制,0以上:选项总数限制")
    @TableField("apply_limit")
    private Integer applyLimit;

    @ApiModelProperty("链接的问题ID(逻辑表单)")
    @TableField("link_que_ids")
    private String linkQueIds;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("最后更新时间")
    @TableField("last_upd_time")
    private LocalDateTime lastUpdTime;

    @ApiModelProperty("当前选项的已选数量")
    @TableField("current_apply")
    private Integer currentApply;

    @ApiModelProperty("选项是否为默认选项")
    @TableField("is_default")
    private Boolean isDefault;

    @TableField("being_other")
    private Boolean beingOther;

    @TableField("being_default")
    private Boolean beingDefault;

    @ApiModelProperty("颜色主题ID")
    @TableField("opt_theme_id")
    private Integer optThemeId;

    @ApiModelProperty("选项是否必填")
    @TableField("being_required")
    private Integer beingRequired;


}
